package entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class User implements Serializable {
	@Override
	public String toString() {
		return "User [id=" + id + ", usercode=" + usercode + ", username="
				+ username + ", userpassword=" + userpassword + ", gender="
				+ gender + ", birthday=" + birthday + ", phone=" + phone
				+ ", address=" + address + ", userrole=" + userrole
				+ ", createdby=" + createdby + ", creationdate=" + creationdate
				+ ", modifyby=" + modifyby + ", modifydate=" + modifydate + "]";
	}

	private Long id;

	private String usercode;

	private String username;

	private String userpassword;

	private Integer gender;

	private Date birthday;

	private int age;

	private String phone;

	private String address;

	private Long userrole;

	private String userRoleName;// 表中没有，额外添加，显示方便

	private Long createdby;

	private Date creationdate;

	private Long modifyby;

	private Date modifydate;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUsercode() {
		return usercode;
	}

	public void setUsercode(String usercode) {
		this.usercode = usercode == null ? null : usercode.trim();
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username == null ? null : username.trim();
	}

	public String getUserpassword() {
		return userpassword;
	}

	public void setUserpassword(String userpassword) {
		this.userpassword = userpassword == null ? null : userpassword.trim();
	}

	public Integer getGender() {
		return gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone == null ? null : phone.trim();
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address == null ? null : address.trim();
	}

	public Long getUserrole() {
		return userrole;
	}

	public void setUserrole(Long userrole) {
		this.userrole = userrole;
	}

	public Long getCreatedby() {
		return createdby;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public void setCreatedby(Long createdby) {
		this.createdby = createdby;
	}

	public Date getCreationdate() {
		return creationdate;
	}

	public void setCreationdate(Date creationdate) {
		this.creationdate = creationdate;
	}

	public Long getModifyby() {
		return modifyby;
	}

	public void setModifyby(Long modifyby) {
		this.modifyby = modifyby;
	}

	public Date getModifydate() {
		return modifydate;
	}

	public String getUserRoleName() {
		return userRoleName;
	}

	public void setUserRoleName(String userRoleName) {
		this.userRoleName = userRoleName;
	}

	public void setModifydate(Date modifydate) {
		this.modifydate = modifydate;
	}

}